<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.2/style/weui.min.css">
    <title>个人中心</title>
    <style>
        .bg {
            width: 100%;
            height: 200px;
            background-image: url(../img/bg.svg);
            padding-top: 10px;
        }

        .head_img {
            width: 100px;
            height: 100px;
            background: #fff;
            padding: 10px;
            border-radius: 50%;
            margin: 0px auto;
        }

        .head_img img {
            height: 100px;
            display: block;
        }

        .name,
        .phone {
            margin-top: 5px;
            text-align: center;
            color: #fff;
        }

        .weui-form-preview__bd p {
            display: flex;
        }

        .weui-form-preview__bd p .weui-form-preview__value {
            width: 25%;
            text-align: center;
        }

        .table-body {
            border-bottom: 1px solid #eee;
            font-weight: 900;
        }
    </style>
</head>

<body>
    <div class="me">
        <div class="bg">
            <div class="head_img">
                <img src="../img/head.svg" alt="">
            </div>
            <p class="name">
                大姐大
            </p>
            <p class="phone">
                13888888888
            </p>
        </div>

        <div class="weui-form-preview">
            <div class="weui-form-preview__hd">
                <label class="weui-form-preview__label">金额总价</label>
                <em class="weui-form-preview__value">¥2400.00</em>
            </div>
            <div class="weui-form-preview__bd">
                <p class="table-body">
                    <label class="weui-form-preview__value">商品名</label>
                    <span class="weui-form-preview__value">单价</span>
                    <span class="weui-form-preview__value">数量</span>
                    <span class="weui-form-preview__value">合计</span>
                </p>
                <p>
                    <label class="weui-form-preview__value">中华</label>
                    <span class="weui-form-preview__value">455</span>
                    <span class="weui-form-preview__value">20</span>
                    <span class="weui-form-preview__value">10000</span>
                </p>
                <p>
                    <label class="weui-form-preview__value">中华</label>
                    <span class="weui-form-preview__value">455</span>
                    <span class="weui-form-preview__value">20</span>
                    <span class="weui-form-preview__value">10000</span>
                </p>
            </div>
            <div class="weui-form-preview__ft">
                <a class="weui-form-preview__btn weui-form-preview__btn_primary" href="javascript:">按照此单再来一单</a>
            </div>
        </div>

        <div id="footer"></div>
    </div>
</body>

<script src="https://cdn.bootcss.com/zepto/1.0rc1/zepto.min.js"></script>
<script>
    $('#footer').load('../directive/footer.html', function () {
        $('#footer').find('a').eq(2).addClass('weui-bar__item_on')
        $('#footer .weui-bar__item_on img').attr('src', $('#footer .weui-bar__item_on img').attr('src').split('.svg')[0] + '_.svg')
    })

    $.ajax({
        url: '/web/user/uesr_detail',
        success: function (res) {
            console.log(res)
        }
    })
</script>

</html>